package modelLag;

import java.util.ArrayList;

/**
 * Description of the class Customer.
 * 
 * @author (Christian, Umut, Christoffer, Patrick, Simon) 
 * @project (Semesterprojekt)
 * @version (2014.12.09)
 */
public class SaleCon {
	private static SaleCon instance;
    private ArrayList<Sale> sales;
	
    /**
     * Constructor for objects of class CustomerCon
     */
    private SaleCon(){
        sales = new ArrayList<Sale>();
    }
    
    /**
     * Returns an instance of CustomerCon
     * 
     * @return an instance of CustomerCon
     */ 
    public static SaleCon getInstance(){
        if(instance == null){
            instance = new SaleCon();
        }
        return instance;
    }
    
    public void addSale(Sale s){
    	sales.add(s);
    }
}